import styles from './index.module.scss'
import cm from 'classnames'
import { memo } from 'react'

const Index = props => {
  const { checked } = props
  return (
    <label className={styles.radioBox}>
      <div className={cm(styles['radio'], { [styles['active']]: checked })}></div>
      <input type="radio" defaultChecked={checked} className={styles.radioInput} />
    </label>
  )
}

export default memo(Index)
